﻿<!--(C) Copyright 2009 Irantha Suwandarathna (iranthas@hotmail.com)-->
 <Window x:Class="EffiProz.Explorer.Connect"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="Connect To Database" Height="230" Width="350" Icon="/EffiProz.Explorer;component/icon.ico" ResizeMode="NoResize">
    <Grid>
        <Grid Margin="12,12,10,10" Name="grid1">
            <Grid.RowDefinitions>
                <RowDefinition Height="35" />
                <RowDefinition Height="35" />
                <RowDefinition Height="0" />
                <RowDefinition Height="0" />
                <RowDefinition Height="35" />
                <RowDefinition Height="35" />
                <RowDefinition Height="35" />
               
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="70" />
                <ColumnDefinition Width="*" />
            </Grid.ColumnDefinitions>
            <Label Grid.Column="0" Grid.Row="0" Name="label1" HorizontalContentAlignment="Left" VerticalContentAlignment="Center">Type:</Label>
            <ComboBox Grid.Column="1" Grid.Row="0" Name="typeComboBox" Margin="0,6" SelectedIndex="1" SelectionChanged="typeComboBox_SelectionChanged">
                <ComboBoxItem Name="InMemory">In-Memory Database</ComboBoxItem>
                <ComboBoxItem Name="File">File Database</ComboBoxItem>
                <ComboBoxItem Name="Server">Server Database</ComboBoxItem>
                <ComboBoxItem Name="WebServer">HTTP Server Database</ComboBoxItem>
            </ComboBox>
            <Label Grid.Row="1" Grid.Column="0" Name="label2" VerticalContentAlignment="Center">Database:</Label>
            <TextBox Grid.Column="1" Grid.Row="1" Margin="0,6,81,7" Name="databaseTextBox" />
            <Label Grid.Column="0"   Name="hostLabel" VerticalContentAlignment="Center" Grid.Row="2" IsEnabled="False">Server:</Label>
            <Label Grid.Column="0"   Name="portLabel" VerticalContentAlignment="Center" Grid.Row="3" IsEnabled="False">Port:</Label>
            <!--<CheckBox  Grid.Column="1" Margin="200,12,10,7" Grid.Row="3" Name="TlsCheckBox">SSH</CheckBox>-->
            <Label Grid.Column="0"   Name="userLabel" VerticalContentAlignment="Center" Grid.Row="4">User:</Label>
            <Label Grid.Column="0"   Name="passwordLabel" VerticalContentAlignment="Center" Grid.Row="5" >Password:</Label>
            <TextBox Grid.Column="1" Margin="0,6,0,7"  Name="hostTextBox"  Grid.Row="2" IsEnabled="False">localhost</TextBox>
            <TextBox Grid.Column="1" Margin="0,6,81,7"  Name="portTextBox"  Grid.Row="3" IsEnabled="False" />
            <TextBox Grid.Column="1" Margin="0,6,0,7"  Name="userTextBox"  Grid.Row="4">sa</TextBox>
            <PasswordBox Grid.Column="1" Margin="0,6,0,7"  Name="passwordTextBox" Grid.Row="5" />
            <Button Grid.Column="1" Grid.Row="6" HorizontalAlignment="Left" Margin="0,7,0,6" Name="okButton" Width="75" Click="okButton_Click">Ok</Button>
            <Button Margin="98,7,37,6" Name="cancelButton" Grid.Column="1" Grid.Row="6" Click="cancelButton_Click">Cancel</Button>
            <Button Grid.Column="1" Grid.Row="1" HorizontalAlignment="Right" Margin="0,6" Name="browseButton" Width="75" Click="browseButton_Click">Browse ...</Button>
            <CheckBox Grid.Column="1" Grid.Row="3" HorizontalAlignment="Right" Margin="0,10,0,9" Name="sslCheckBox" Width="66">SSL</CheckBox>
        </Grid>
    </Grid>
</Window>
